package com.example.zhiran.pojo.option.categoryoption;

/**
 * @author :robin-chen
 * 类别操作返回信息
 * messgeCode range 401~499
 */
public enum CategoryOptionMessage {

    CATEGORY_QUERY_SUCCESS(401,"category_query_success"),

    CATEGORY_QUERY_FAIL(402,"category_query_fail"),

    CATEGORY_ADD_SUCCESS(411,"category_add_success"),

    CATEGORY_ADD_FAIL(412,"category_add_fail"),

    CATEGORY_UPDATE_SUCCESS(421,"category_update_success"),

    CATEGORY_UPDATE_FAIL(422,"category_update_fail"),

    CATEGORY_DELETE_SUCCESS(431,"category_delete_success"),

    CATEGORY_DELETE_FAIL(432,"category_delete_fail");

    private int messageCode;
    private String message;

    CategoryOptionMessage(int messageCode, String message) {
        this.messageCode = messageCode;
        this.message = message;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getMessage() {
        return message;
    }
}
